package com.example.attempt.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class Evaluation {
    int submitId;
    String htitle;
    String submitContent;
    String submitFile;
    String comment;
    double grade;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime dtime;

    Evaluation(int submitId, String htitle, String submitContent, String submitFile, String comment, double grade, LocalDateTime dtime) {
        this.submitId = submitId;
        this.htitle = htitle;
        this.submitContent = submitContent;
        this.submitFile = submitFile;
        this.comment = comment;
        this.grade = grade;
        this.dtime = dtime;
    }
}
